package com.twu.biblioteca;

import java.util.ArrayList;

public class Movie {
    private ArrayList<String> movies = new ArrayList<String>();

    public Movie() {
        Initialize();
    }

    private void Initialize() {
        movies.add("Movie\tYear\tDirector\tRating");
        movies.add("Sholay\t1975\tRamesh Sippy\tN/A");
        movies.add("Cry Freedom\t1990\tDavid Micheal\t8.0");
    }

    @Override
    public String toString() {
        StringBuilder listOfMovies =  new StringBuilder();
        for(String movie : movies){
            listOfMovies.append(movie);
            listOfMovies.append("\n");
        }

        return listOfMovies.toString();
    }
}
